package com;

import com.mapper.UserDao;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;

/**
 * Created by pengfei on 2017/10/26.
 */
@ImportResource("/spring/app.xml")
@SpringBootApplication
@MapperScan(markerInterface= UserDao.class,basePackages = {"com.mapper"})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
